package com.item.service;

import com.item.dao.NoteUserMapper;
import com.item.dao.model.NoteUser;
import com.item.dao.model.NoteUserExample;
import com.item.dao.model.NoteUserKey;
import com.item.daoEx.NoteUserMapperEx;
import com.item.daoEx.model.NoteUserEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoteUserService {
    @Autowired
    private NoteUserMapper noteUserMapper;
    
    @Autowired
    private NoteUserMapperEx noteUserMapperEx;

    private static final Logger logger = Logger.getLogger(NoteUserService.class);

    public int countByExample(NoteUserExample example) {
        return this.noteUserMapper.countByExample(example);
    }

    public NoteUser selectByPrimaryKey(NoteUserKey key) {
        return this.noteUserMapper.selectByPrimaryKey(key);
    }

    public List<NoteUser> selectByExample(NoteUserExample example) {
        return this.noteUserMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(NoteUserKey key) {
        return this.noteUserMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(NoteUser record) {
        return this.noteUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NoteUser record) {
        return this.noteUserMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NoteUserExample example) {
        return this.noteUserMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NoteUser record, NoteUserExample example) {
        return this.noteUserMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NoteUser record, NoteUserExample example) {
        return this.noteUserMapper.updateByExample(record, example);
    }

    public int insert(NoteUser record) {
        return this.noteUserMapper.insert(record);
    }

    public int insertSelective(NoteUser record) {
        return this.noteUserMapper.insertSelective(record);
    }
    
    public List<NoteUserEx> selectNoteUserEx(Map<?,?> map){
    	return this.noteUserMapperEx.selectNoteUserEx(map);
    }
}